package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingPurchaseApplyEntity;
import com.ly.heart.domain.dto.KingPurchaseApplyQueryDto;

/**
 * 金蝶-采购申请单Service接口
 *
 * @author cxl
 * @date 2024-08-31
 */
public interface IKingPurchaseApplyService extends IService<KingPurchaseApplyEntity> {

    /**
     * 获取采购申请单列表
     * @param queryDto
     * @return
     */
    AjaxResult getKingPurchaseApplyPageList(KingPurchaseApplyQueryDto queryDto);

    /**
     * 暂存采购申请单
     * @param kingPurchaseApply
     * @return
     */
    AjaxResult draft(KingPurchaseApplyEntity kingPurchaseApply);

    /**
     * 提交采购申请单
     * @param kingPurchaseApply
     * @return
     */
    AjaxResult submit(KingPurchaseApplyEntity kingPurchaseApply);

    /**
     * 修改采购申请单
     * @param kingPurchaseApply
     * @return
     */
    AjaxResult update(KingPurchaseApplyEntity kingPurchaseApply);




    /**
     * 查询金蝶-采购申请单
     *
     * @param id 金蝶-采购申请单ID
     * @return 金蝶-采购申请单
     */
    public KingPurchaseApplyEntity selectKingPurchaseApplyEntityById(String id);

    /**
     * 查询金蝶-采购申请单列表
     *
     * @param kingPurchaseApplyEntity 金蝶-采购申请单
     * @return 金蝶-采购申请单集合
     */
    public List<KingPurchaseApplyEntity> selectKingPurchaseApplyEntityList(KingPurchaseApplyEntity kingPurchaseApplyEntity);

    /**
     * 新增金蝶-采购申请单
     *
     * @param kingPurchaseApplyEntity 金蝶-采购申请单
     * @return 结果
     */
    public int insertKingPurchaseApplyEntity(KingPurchaseApplyEntity kingPurchaseApplyEntity);

    /**
     * 修改金蝶-采购申请单
     *
     * @param kingPurchaseApplyEntity 金蝶-采购申请单
     * @return 结果
     */
    public int updateKingPurchaseApplyEntity(KingPurchaseApplyEntity kingPurchaseApplyEntity);

    /**
     * 批量删除金蝶-采购申请单
     *
     * @param ids 需要删除的金蝶-采购申请单ID
     * @return 结果
     */
    public int deleteKingPurchaseApplyEntityByIds(String[] ids);

    /**
     * 删除金蝶-采购申请单信息
     *
     * @param id 金蝶-采购申请单ID
     * @return 结果
     */
    public int deleteKingPurchaseApplyEntityById(String id);
}
